home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
ACORNUSERS
/
CBSA
/
EDUCATION
/
LOADER
/
cc
/
Test
next >
Wrap
Text File
|
1997-12-20
|
709b
|
51 lines
//-----------------------------------
// Test.c
//-----------------------------------
#include <string.h>
#include <iostream.h>
#include "os.h"
#include "trap.h"
#include "WimpTask.h"
#include "WimpError.h"
#include "WimpIcon.h"
class MyTask : public WimpTask
{
public:
MyTask(char *);
bool ButtonPressed();
bool load(char *, int, int);
};
MyTask::MyTask(char *name) : WimpTask(name)
{
EnableEvent(EBUT);
}
bool MyTask::ButtonPressed()
{
if (Mouse_Click.window = -2) return(TRUE);
return(FALSE);
}
bool MyTask::load(char *filename, int size, int type)
{
throw(filename);
return FALSE;
}
int main()
{
MyTask a("CouCou");
WimpIcon b("my_sprite");
a.run();
}